package com.xiaolin.designmode.command;

/**
 * @ClassName CommandTest
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/11/5
 * @Version 1.0
 */
public class CommandTest {
    public static void main(String[] args) {
        Invoker i1=new Invoker(new ConcreteCommand1(new Receiver1()));
        i1.call();
        Invoker i2=new Invoker(new ConcreteCommand2(new Receiver2()));
        i2.call();
    }
}
